Optimal. Leaf size=84 \[ \frac {5 a^4 b x^n}{n}+\frac {5 a^3 b^2 x^{2 n}}{n}+\frac {10 a^2 b^3 x^{3 n}}{3 n}+\frac {5 a b^4 x^{4 n}}{4 n}+\frac {b^5 x^{5 n}}{5 n}+a^5 \log (x) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 84, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.154, Rules used = {272, 45}
\begin {gather*} a^5 \log (x)+\frac {5 a^4 b x^n}{n}+\frac {5 a^3 b^2 x^{2 n}}{n}+\frac {10 a^2 b^3 x^{3 n}}{3 n}+\frac {5 a b^4 x^{4 n}}{4 n}+\frac {b^5 x^{5 n}}{5 n} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 45
Rule 272
Rubi steps
\begin {align*} \int \frac {\left (a+b x^n\right )^5}{x} \, dx &=\frac {\text {Subst}\left (\int \frac {(a+b x)^5}{x} \, dx,x,x^n\right )}{n}\\ &=\frac {\text {Subst}\left (\int \left (5 a^4 b+\frac {a^5}{x}+10 a^3 b^2 x+10 a^2 b^3 x^2+5 a b^4 x^3+b^5 x^4\right ) \, dx,x,x^n\right )}{n}\\ &=\frac {5 a^4 b x^n}{n}+\frac {5 a^3 b^2 x^{2 n}}{n}+\frac {10 a^2 b^3 x^{3 n}}{3 n}+\frac {5 a b^4 x^{4 n}}{4 n}+\frac {b^5 x^{5 n}}{5 n}+a^5 \log (x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.04, size = 72, normalized size = 0.86 \begin {gather*} \frac {b x^n \left (300 a^4+300 a^3 b x^n+200 a^2 b^2 x^{2 n}+75 a b^3 x^{3 n}+12 b^4 x^{4 n}\right )}{60 n}+\frac {a^5 \log \left (x^n\right )}{n} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.22, size = 70, normalized size = 0.83
method | result | size |
derivativedivides | \(\frac {\frac {b^{5} x^{5 n}}{5}+\frac {5 a \,b^{4} x^{4 n}}{4}+\frac {10 a^{2} b^{3} x^{3 n}}{3}+5 a^{3} b^{2} x^{2 n}+5 a^{4} b \,x^{n}+a^{5} \ln \left (x^{n}\right )}{n}\) | \(70\) |
default | \(\frac {\frac {b^{5} x^{5 n}}{5}+\frac {5 a \,b^{4} x^{4 n}}{4}+\frac {10 a^{2} b^{3} x^{3 n}}{3}+5 a^{3} b^{2} x^{2 n}+5 a^{4} b \,x^{n}+a^{5} \ln \left (x^{n}\right )}{n}\) | \(70\) |
risch | \(\frac {5 a^{4} b \,x^{n}}{n}+\frac {5 a^{3} b^{2} x^{2 n}}{n}+\frac {10 a^{2} b^{3} x^{3 n}}{3 n}+\frac {5 a \,b^{4} x^{4 n}}{4 n}+\frac {b^{5} x^{5 n}}{5 n}+a^{5} \ln \left (x \right )\) | \(79\) |
norman | \(a^{5} \ln \left (x \right )+\frac {b^{5} {\mathrm e}^{5 n \ln \left (x \right )}}{5 n}+\frac {5 a \,b^{4} {\mathrm e}^{4 n \ln \left (x \right )}}{4 n}+\frac {10 a^{2} b^{3} {\mathrm e}^{3 n \ln \left (x \right )}}{3 n}+\frac {5 a^{3} b^{2} {\mathrm e}^{2 n \ln \left (x \right )}}{n}+\frac {5 a^{4} b \,{\mathrm e}^{n \ln \left (x \right )}}{n}\) | \(89\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.29, size = 74, normalized size = 0.88 \begin {gather*} \frac {a^{5} \log \left (x^{n}\right )}{n} + \frac {12 \, b^{5} x^{5 \, n} + 75 \, a b^{4} x^{4 \, n} + 200 \, a^{2} b^{3} x^{3 \, n} + 300 \, a^{3} b^{2} x^{2 \, n} + 300 \, a^{4} b x^{n}}{60 \, n} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.41, size = 70, normalized size = 0.83 \begin {gather*} \frac {60 \, a^{5} n \log \left (x\right ) + 12 \, b^{5} x^{5 \, n} + 75 \, a b^{4} x^{4 \, n} + 200 \, a^{2} b^{3} x^{3 \, n} + 300 \, a^{3} b^{2} x^{2 \, n} + 300 \, a^{4} b x^{n}}{60 \, n} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.17, size = 85, normalized size = 1.01 \begin {gather*} \begin {cases} a^{5} \log {\left (x \right )} + \frac {5 a^{4} b x^{n}}{n} + \frac {5 a^{3} b^{2} x^{2 n}}{n} + \frac {10 a^{2} b^{3} x^{3 n}}{3 n} + \frac {5 a b^{4} x^{4 n}}{4 n} + \frac {b^{5} x^{5 n}}{5 n} & \text {for}\: n \neq 0 \\\left (a + b\right )^{5} \log {\left (x \right )} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.22, size = 78, normalized size = 0.93 \begin {gather*} a^5\,\ln \left (x\right )+\frac {b^5\,x^{5\,n}}{5\,n}+\frac {5\,a^3\,b^2\,x^{2\,n}}{n}+\frac {10\,a^2\,b^3\,x^{3\,n}}{3\,n}+\frac {5\,a^4\,b\,x^n}{n}+\frac {5\,a\,b^4\,x^{4\,n}}{4\,n} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________